package cn.gzsxt.music.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import cn.gzsxt.music.query.SongQueryObject;

@Mapper
public interface SongMapper {
	
	@InsertProvider(type=MapperSqlProvider.class,method="addSql")
	int addSong(Map<String, Object> params);
	
	@DeleteProvider(type=MapperSqlProvider.class,method="delSql")
	int deletcSong(String song_ids);
	
	@UpdateProvider(type=MapperSqlProvider.class,method="updSql")
	int updateSong(Map<String, Object> params);
	
	@SelectProvider(type=MapperSqlProvider.class,method="selectByCondition")
	List<Map<String,Object>> selectByCondition(Map<String, Object> params);
		
	@SelectProvider(type=MapperSqlProvider.class,method="selectTotalByCondition")
	Long selectTotalByCondition(Map<String, Object> params);

}
